package com.yunxi.service.localService.impl.otd;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.otd.MonthPlanDetailMapper;
import com.yunxi.model.otd.MonthPlanDetail;
import com.yunxi.otd.pojo.MonthPlanDetailVO;
import com.yunxi.service.localService.otd.MonthPlanDetailService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 月度需求计划 服务实现类
 * </p>
 *
 * @author XUQI
 * @since 2019-05-06
 */

@Service
public class MonthPlanDetailServiceImpl extends ServiceImplPlus<MonthPlanDetailMapper, MonthPlanDetail> implements
    MonthPlanDetailService {

    @Override
    public void deleteDetailByCode(String monthPlanCode) {
        baseMapper.deleteDetailByCode(monthPlanCode);
    }

    /**
     * 根据月度计划编号查询计划明细
     */
    @Override
    public List<MonthPlanDetailVO> findMonthPlanDetailByCode(String monthPlanCode) {
        return baseMapper.selectDetailByCode(monthPlanCode);
    }

}